package com.xmall.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmall.auth.entity.SysMenu;
import com.xmall.auth.entity.SysResource;
import com.xmall.auth.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 后台用户角色表 Mapper 接口
 * </p>
 *
 * @author liuzh
 * @since 2020-06-14
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    List<SysMenu> getMenuList(@Param("adminId") Long adminId);

    List<SysMenu> getMenuListByRoleId(@Param("roleId") Long roleId);

    List<SysResource> getResourceListByRoleId(@Param("roleId") Long roleId);
}
